package com.springcloud.service;

import com.springcloud.IDubboService;
import com.springcloud.Product;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;

/**
 * @Description
 * @Author 顾志杰
 * @Date 2021/10/18 11:12
 */
@Service
@Slf4j
public class DubboService implements IDubboService {
    @Override
    public Product publish(Product product) {
        log.info("publishing  {}",product.getName());
        return product;
    }
}
